package com.hjy.core.transport.socket;

import com.hjy.api.HelloObject;
import com.hjy.api.HelloService;
import com.hjy.core.transport.RpcClientProxy;
import com.hjy.core.transport.socket.client.SocketClient;

public class TestClient {
    public static void main(String[] args) {
        SocketClient socketClient = new SocketClient();
        RpcClientProxy proxy = new RpcClientProxy(socketClient);
        HelloService helloService = proxy.getProxy(HelloService.class);
        HelloObject object = new HelloObject(12, "This is a message");
        String res = helloService.sayHello(object);
        System.out.println(res);
    }
}
